package cn.kmsoft.jssc.entity.dlhy;

import lombok.Data;

/**
 * 压缩包检查结果输出
 */
@Data
public class CheckZipMessageDto {
    public static final int ISSUE_LEVEL_NORMAL=0;//普通
    public static final int ISSUE_LEVEL_SEROUS=1;//严重

    private String fid;//shp图层的objectId
    private String dkbh;//地块编号
    private String message;//问题描述
    private int issueLevel = 0;//问题严重级别.注意大于零的不能通过

    /**
     * 检查结果返回
     *
     * @param fid
     * @param msg
     * @return
     */
    public static CheckZipMessageDto CheckResultRequest(String fid, String msg) {
        CheckZipMessageDto dto = new CheckZipMessageDto();
        dto.setFid(fid);
        dto.setMessage(msg);
        dto.setIssueLevel(0);
        return dto;
    }
    public static CheckZipMessageDto CheckResultRequest(String fid, String msg, int issueLevel) {
        CheckZipMessageDto dto = new CheckZipMessageDto();
        dto.setFid(fid);
        dto.setMessage(msg);
        dto.setIssueLevel(issueLevel);
        return dto;
    }

    public static CheckZipMessageDto CheckResultRequest(String fid,String dkbh, String msg) {
        CheckZipMessageDto dto = new CheckZipMessageDto();
        dto.setFid(fid);
        dto.setMessage(msg);
        dto.setIssueLevel(0);
        return dto;
    }

    public static CheckZipMessageDto CheckResultRequest(String fid,String dkbh, String msg, int issueLevel) {
        CheckZipMessageDto dto = new CheckZipMessageDto();
        dto.setFid(fid);
        dto.setMessage(msg);
        dto.setIssueLevel(issueLevel);
        return dto;
    }
}
